module.exports = {
  pluginOptions: {
    "style-resources-loader": {
      preProcessor: "scss",
      patterns: [],
    },
  },
  devServer: {
    host: "localhost",
    port: 8081,
    proxy: {
      // 配置跨域，请求后端接口
      "/api": {
        target: "http://localhost:8080", //源地址
        changeOrigin: true, //是否允许跨域
        // ws: false,//是否代理websockets
        pathRewrite: {
          "^/api": "",
        },
      },
    },
  },
};
